<?php /* Smarty version 2.6.11, created on 2011-06-22 09:54:21
         compiled from member_register.php */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>新会员免费注册</title>
<link href="<?php echo $this->_tpl_vars['attr']['url']; ?>
/style/main.css" rel="stylesheet" media="screen" type="text/css" />
<link href="<?php echo $this->_tpl_vars['attr']['url']; ?>
/style/index.css" rel="stylesheet" media="screen" type="text/css" />
<link href="<?php echo $this->_tpl_vars['attr']['url']; ?>
/style/member.css" rel="stylesheet" type="text/css" />
<style>
.attention{display:none;}
</style>
<script type="text/javascript" src=" http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script language="javascript">
function checkFrom()
{
	/*var username	= $(":input[name=username]").val();
	$.post('/app/?m=member&a=checkUsername',{'username':username},function(data){
		if (data !== 1)
		{
			$(":input[name=username]").parent().next().show();
			$(":input[name=username]").parent().next().html('<p class="no">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;用户名不可用</p>');
			$(":input[name=username]").focus();
			return false;
			uname	= false;
		}
		else uname = true;
	})
	*/
	//if (uname == false) {alert(1);return false;}
	
	var strEmail	= $(":input[name=email]").val();
	if (!isEmail(strEmail))
	{
		$(":input[name=email]").parent().next().show();
		$(":input[name=email]").parent().next().html('<p class="no">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;无效的邮件地址</p>');
		$(":input[name=email]").focus();
		return false;
	}
	
	var password	= $("#password").val();
	var password2	= $(":input[name=passwd2]").val();
	if (password == password2) {}
	else
	{
		$(":input[name=password2]").parent().next().show();
		$(":input[name=password2]").parent().next().html('<p class="no">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;两次密码输入不一致，请重新输入</p>');
		$(":input[name=password2]").focus();
		return false;
	}

	
}
</script>
</head>

<body>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "head.htm", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<div class="box">
<!--top--><!--top end-->
<!--head start-->
<div id="menu">
	<div class="menu_1">
	<ul>
	<li>填写帐户信息 <span style="font-size:12px;font-weight:500"></span></li>
	</ul>
	</div>
</div>
    
<!--head end-->
<div id="wrapper">
<!--content start-->
<div id="contert">
	  <div class="reg_form">
	  <div class="form_box">
			<form id="register" action="/app/?m=member&a=register" method="post" >
			 <div class="input email">
               <div style="width:300px;float:left;height:25px;">
           	     <label>Email:</label>
            	    <input name="email" type="text" class="field_text" />
                </div>
                <div class="attention"></div>
                     <p class="span_ex">(必须填写真实有效的邮箱才能接收email并激活账号)</p>
         	  </div>
		      <div class="input">
               <div style="width:300px;float:left;height:25px;">
           	     <label>登录名:</label>
            	    <input name="username" type="text" class="field_text" />
                </div>
                <div class="attention"></div>
                     <p class="span_ex">必填</p>
         	  </div>
			   <div class="input">
               <div style="width:300px;float:left;height:25px;">
            	    <label>密码:</label>
            	    <input name="password" id="password" type="password" class="field_text" />
                </div>
                <div class="attention"></div>
                     <p class="span_ex">必填</p>
         	  </div>
			   <div class="input">
               <div style="width:300px;float:left;height:25px;">
            	    <label>确认密码:</label>
            	    <input name="passwd2" type="password" class="field_text" />
                </div>
                <div class="attention"></div>
                     <p class="span_ex">必填</p>
         	  </div>
			  <div class="input">
               <div style="width:300px;float:left;height:25px;">
            	    <label>省份:</label>
            	    <input name="province" type="text" class="field_text" />
                </div>
                <div class="attention"> 
                
                
                 </div>
                 <p class="span_ex"></p>
         	  </div>
			  <div class="input">
               <div style="width:300px;float:left;height:25px;">
            	    <label>城市:</label>
            	    <input name="city" type="text" class="field_text" />
                </div>
                <div class="attention"> 
                
                
                 </div>
                 <p class="span_ex"></p>
         	  </div>
			  <div class="input">
               <div style="width:300px;float:left;height:25px;">
            	    <label>真实姓名:</label>
            	    <input name="name" type="text" class="field_text" />
                </div>
                <div class="attention"> 
                
                
                </div>
                 <p class="span_ex"></p>
         	  </div>  
			  <div class="input">
               <div style="width:300px;float:left;height:25px;">
            	    <label>电话:</label>
            	    <input name="tel" type="text" class="field_text" />
                </div>
                <div class="attention"> 
                
                
                 </div>
                 <p class="span_ex"></p>
         	  </div> 
			  <div class="input">
               <div style="width:300px;float:left;height:25px;">
            	    <label>传真:</label>
            	    <input name="fax" type="text" class="field_text" />
                </div>
                <div class="attention"> 
                 </div>
                 <p class="span_ex"></p>
         	  </div>                                                                    
              <div class="input">
              	<input type="hidden" name="ref" id="ref" />
                <input type="hidden" name="url" id="url" />
                <input type="image" id="button" width="105px" height="33px" src="<?php echo $this->_tpl_vars['attr']['url']; ?>
style/images/zhuce.gif" border="0" style="margin-left:80px;" onclick="return checkFrom();" />
              </div>
        </form>
      </div>
	  <div class="win">
		  <h3 class="win_ex">已有账户?</h3><br />
		  请直接&nbsp;<a href="/app/?m=member&a=login">登录</a>
		</div>	
		</div>
		<div style="clear:both"></div>
  </div>

<!--content end-->
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.htm", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<script language="javascript">
document.getElementById("ref").value	= encodeURIComponent(document.referrer.toString());
document.getElementById("url").value	= encodeURIComponent(document.location.href.toString());
</script>
</body>
</html>